package com.bdqn.zhang.service.impl;


import com.bdqn.zhang.mapper.BookMapper;
import com.bdqn.zhang.mapper.UserMapper;
import com.bdqn.zhang.pojo.Book;
import com.bdqn.zhang.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("bookService")
public class BookServiceImpl implements BookService {
    @Resource
    private BookMapper bookMapper;

    public List<Book> getbook() {
        return bookMapper.getbook();
    }

    public int addbook(Book book) {
        return bookMapper.addbook(book);
    }

    public int delete(int id) {
        return bookMapper.delete(id);
    }

    public int update(int id, String uploaduser) {
        return bookMapper.update(id,uploaduser);
    }

}
